<?php

/**
 * Ciudad form.
 *
 * @package    inmobiliaria
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CiudadForm extends BaseCiudadForm
{
   public function configure()
  {
    unset(
      $this['created_at'], $this['updated_at']
    );

    $this->widgetSchema['provincia_id']=new sfWidgetFormInputHidden();

    $this->widgetSchema['provincia']=new sfWidgetFormDoctrineChoiceChain(array('chain' => array('pais', 'provincia'),
          'item_template' => '<td><strong>%label%<span class="star">*</span></strong>: %widget%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>',
          'global_template' => '<table cellpadding="0" cellspacing="0"><tr>%items%</tr></table>'
    ));

    $this->validatorSchema['provincia']=new sfValidatorChoiceChain(array('chain' => array('pais', 'provincia')));
  }
}
